/// code : 200
/// msg : "success"
/// data : {"name":"img/A8D0D2F1F32B4A159E1248C44692F824.jpg","ext":"jpg","url":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/A8D0D2F1F32B4A159E1248C44692F824.jpg","saveUrl":null,"fileSize":307338}

class UpdateImageBean {
  UpdateImageBean({
    this.code,
    this.msg,
    this.data,
  });

  UpdateImageBean.fromJson(dynamic json) {
    code = json['code'];
    msg = json['msg'];
    data = json['data'] != null ? Data.fromJson(json['data']) : null;
  }

  num? code;
  String? msg;
  Data? data;

  UpdateImageBean copyWith({
    num? code,
    String? msg,
    Data? data,
  }) =>
      UpdateImageBean(
        code: code ?? this.code,
        msg: msg ?? this.msg,
        data: data ?? this.data,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['msg'] = msg;
    if (data != null) {
      map['data'] = data?.toJson();
    }
    return map;
  }
}

/// name : "img/A8D0D2F1F32B4A159E1248C44692F824.jpg"
/// ext : "jpg"
/// url : "http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/A8D0D2F1F32B4A159E1248C44692F824.jpg"
/// saveUrl : null
/// fileSize : 307338

class Data {
  Data({
    this.name,
    this.ext,
    this.url,
    this.saveUrl,
    this.fileSize,
  });

  Data.fromJson(dynamic json) {
    name = json['name'];
    ext = json['ext'];
    url = json['url'];
    saveUrl = json['saveUrl'];
    fileSize = json['fileSize'];
  }

  String? name;
  String? ext;
  String? url;
  dynamic saveUrl;
  num? fileSize;

  Data copyWith({
    String? name,
    String? ext,
    String? url,
    dynamic saveUrl,
    num? fileSize,
  }) =>
      Data(
        name: name ?? this.name,
        ext: ext ?? this.ext,
        url: url ?? this.url,
        saveUrl: saveUrl ?? this.saveUrl,
        fileSize: fileSize ?? this.fileSize,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['name'] = name;
    map['ext'] = ext;
    map['url'] = url;
    map['saveUrl'] = saveUrl;
    map['fileSize'] = fileSize;
    return map;
  }
}
